﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Topcoder
{
    namespace SRM549
    {

        class BallAndHats
        {
            public static int getHat(string hats, int numSwaps)
            {
                int pos = 0;
                for (int i = 0; i < 3; i++)
                {
                    if (hats[i] == 'o')
                    {
                        pos = i;
                        break;
                    }
                }
                if (numSwaps == 0) return pos;
                numSwaps = numSwaps % 2;
                if (numSwaps == 0)
                {
                    if ((pos == 0) || (pos == 2)) return 2;
                    else return 1;
                }
                else
                {
                    if (pos == 1) return 0;
                    else return 1;
                }

            }
        }

        class PointyWizardHats
        {
            public static int getNumHats(int[] topHeight, int[] topRadius, int[] bottonHeight, int[] bottomRadius)
            { 
            
            }

        }

    }
}
